//
//  LDSIFTTTEditTableCell.m
//  LDSSmartHome
//
//  Created by leedarson on 2017/11/6.
//Copyright © 2017年 leedarson. All rights reserved.
//

#import "LDSIFTTTEditTableCell.h"
#import "LDSIFTTTEditModel.h"

@implementation LDSIFTTTEditTableCell

- (void)viewSetup {

}

- (void)frameSetup {
    
}

- (void)setModel:(LDSIFTTTEditModel *)model
{
    [super setModel:model];
    if (model) {
        //将model 的数值 传递给 cell
        self.textLabel.text = model.text;
        self.imageView.image = [UIImage imageNamed:model.imageName];
        self.detailTextLabel.text = model.detailInfo;
        if (model.blueColor) {
            self.textLabel.textColor = [UIColor lightTextColor];
            self.detailTextLabel.textColor = [UIColor lightTextColor];
            self.backgroundColor = [UIColor colorWithRed:2/255.0 green:155/255.0 blue:231/255.0 alpha:1.0];
        }else {
            self.textLabel.textColor = [UIColor darkTextColor];
            self.detailTextLabel.textColor = [UIColor darkTextColor];
            self.backgroundColor = [UIColor whiteColor];
        }
    }
}

+ (CGFloat)height {
    return 55.0f;
}


@end
